projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94093fd
)
range: Fix typo in allocate_trough
author
Timm Bäder
<mail@baedert.org>
Fri, 23 Feb 2018 09:59:21 +0000
(10:59 +0100)
committer
Timm Bäder
<mail@baedert.org>
Fri, 23 Feb 2018 09:59:21 +0000
(10:59 +0100)
lower - upper results in something negative of course.
gtk/gtkrange.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrange.c
b/gtk/gtkrange.c
index 981409eb6dea8d6ac246cbd897583b4b0ebf04f3..ba37dbee349071fa6f29340b1a97cb2c09eba349 100644
(file)
--- a/
gtk/gtkrange.c
+++ b/
gtk/gtkrange.c
@@
-1405,7
+1405,7
@@
gtk_range_allocate_trough (GtkGizmo *gizmo,
level = CLAMP (priv->fill_level, lower, upper - page_size);
- fill = (level - lower) / (
lower - upp
er - page_size);
+ fill = (level - lower) / (
upper - low
er - page_size);
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{